package gov.chinatax.ctcps.generator.dao.pojo;

import java.io.Serializable;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 *        @hibernate.class
 *         table="DM_SQFL"
 *     
*/
public class DmSqfl implements Serializable {

    /** identifier field */
    private String sqflDm;

    /** nullable persistent field */
    private String sqflMc;

    /** full constructor */
    public DmSqfl(String sqflDm, String sqflMc) {
        this.sqflDm = sqflDm;
        this.sqflMc = sqflMc;
    }

    /** default constructor */
    public DmSqfl() {
    }

    /** minimal constructor */
    public DmSqfl(String sqflDm) {
        this.sqflDm = sqflDm;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="SQFL_DM"
     *         
     */
    public String getSqflDm() {
        return this.sqflDm;
    }

    public void setSqflDm(String sqflDm) {
        this.sqflDm = sqflDm;
    }

    /** 
     *            @hibernate.property
     *             column="SQFL_MC"
     *             length="30"
     *         
     */
    public String getSqflMc() {
        return this.sqflMc;
    }

    public void setSqflMc(String sqflMc) {
        this.sqflMc = sqflMc;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("sqflDm", getSqflDm())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof DmSqfl) ) return false;
        DmSqfl castOther = (DmSqfl) other;
        return new EqualsBuilder()
            .append(this.getSqflDm(), castOther.getSqflDm())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getSqflDm())
            .toHashCode();
    }

}
